<?php
/**
 * Created by PhpStorm.
 * User: WYJ
 * Date: 2018/5/8
 * Time: 15:39
 */
namespace zhtfrontend\controllers;

use zhtfrontend\components\bases\BaseController;
use common\components\actions\DeleteAction;
use zhtfrontend\models\datas\CustomerTrackingRecord;

class TrackingrecordController extends BaseController{

    //列表
    public function actionIndex(){

        return $this->render('index');

    }

    //添加
    public function actionCreate(){

        return $this->render('create');

    }

    //修改
    public function actionUpdate(){

        return $this->render('update');


    }

    //删除
    public function actions()
    {
        return [
            'delete' => [
                'class' => DeleteAction::className(),
                'modelClass' => CustomerTrackingRecord::className(),
                'message' => ['success' => '删除成功！'],
                'redirectTo' => 'trackingrecord/index',
            ],
        ];
    }

}